package com.wanmait.meteor.controller;

import com.wanmait.meteor.service.JoinMemberService;
import com.wanmait.meteor.util.IgnoreToken;
import com.wanmait.meteor.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@IgnoreToken
@RestController
@CrossOrigin
public class JoinMemberController {
    @Resource
    private JoinMemberService joinMemberService;
    //wf  添加报名会议
    @RequestMapping("web/addJoinMember")
    //public Result addJoinMember(Integer meetId,Integer meetLevelId,Integer userinfoId){
   public Result addJoinMember(Integer meetId,Integer meetLevelId){
            int userinfoId=1;
            joinMemberService.addJoinMember(userinfoId,meetId,meetLevelId);
        return Result.success();
    }
}
